# def spuer_sort(lst):
#     pre=[]
#     last=[]
#     for i in lst:
#         if i>0:
#             pre.append(i)
#         else:
#             last.append(i)
#     l1=sorted(pre)
#
#     l2=sorted(last, reverse=True)
#
#     return l1+l2
#
# list1=[7,-8,5,6,0,-2,-5]
# print(spuer_sort(list1))

#
# s="asdjkfjDGj374798"
############################################################33
# import re
#
#
# def check(x):
#     if re.search(r"^[a-zA-Z_]{1}[A-Za-z0-9_]{5,18}$", x):
#         return x
#     else:
#         return
#
#
# username = ["fffff", "dhahfjhj"]
# print(list(filter(check, username)))
# print(list((map(check, username))))


###############################################

# print(reduce(lambda x, y: x * y, range(1, 3)))
#
# print(list(filter(lambda x: x % 3 == 0, range(1, 101))))
#
# print(list(map(lambda x:x*x,range(1,11))))



s = "ljakdjk703954770178328598ADFAfd734016506"


def num_sort(num):
    if num.isdigit():
        # 判断是奇数
        if int(num) % 2 == 1:
            # 获取ASCII值
            return ord(num)*-1
        else:
            return (ord(num)+10)*-1
    return ord(num)
print(''.join(sorted(s,key=num_sort,reverse=True)))
